// --------------------------------------------------------------------------------------------------------------------
// <copyright file="KinectIRCameraParameters.cs" company="Microsoft Corporation">
// The MIT License (MIT)
// 
// Copyright (c) 2014, Microsoft Corporation
// 
// Permission is hereby granted, free of charge, to any person obtaining a copy
//  of this software and associated documentation files (the "Software"), to deal
//  in the Software without restriction, including without limitation the rights
//  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
//  copies of the Software, and to permit persons to whom the Software is
//  furnished to do so, subject to the following conditions:
// 
// The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
//  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
//  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
//  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
//  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
//  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
//  THE SOFTWARE.
// </copyright>
// --------------------------------------------------------------------------------------------------------------------
namespace Microsoft.Robotics.Vision.Cameras
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Runtime.Serialization;
    using System.Text;
    using System.Threading.Tasks;

    using Microsoft.Kinect;
    using Microsoft.Robotics.Numerics;

    /// <summary>
    /// Container for the parameters of a the Kinect depth camera
    /// </summary>
    [DataContract]
    public class KinectIRCameraParameters : IRParameters
    {
        /// <summary>
        /// Initializes a new instance of the KinectIRCameraParameters class
        /// </summary>
        /// <param name="intrinsics">The camera intrinsics</param>
        /// <param name="distortion">The camera distortion parameters</param>
        /// <param name="horizontalFieldOfViewInRadians">The horizontal field of view in radians</param>
        /// <param name="verticalFieldOfViewInRadians">The vertical field of view in radians</param>
        /// <param name="leftRightImages">If true then images are left right</param>
        /// <param name="colorStream">The class that contains kinect depth camera specific parameters</param>
        /// <param name="state">The state of the kinect</param>
        public KinectIRCameraParameters(
            Matrix3 intrinsics,
            LensDistortion distortion,
            double horizontalFieldOfViewInRadians,
            double verticalFieldOfViewInRadians,
            bool leftRightImages,
            ColorImageStream colorStream,
            KinectCameraState state)
            : base(
            intrinsics,
            distortion,
            horizontalFieldOfViewInRadians,
            verticalFieldOfViewInRadians)
        {
            this.State = state;
            this.LeftRightImage = leftRightImages;
        }

        /// <summary>
        /// Gets the state of the kinect
        /// </summary>
        [DataMember]
        public KinectCameraState State { get; private set; }

        /// <summary>
        /// Gets a value indicating whether the images are left right or not
        /// </summary>
        [DataMember]
        public bool LeftRightImage { get; private set; }
    }
}
